package com.itheima.dao;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Xiao
 * @date 2021/8/26
 */
public interface UserDao {
    //增
    void insert(User user);

    //删
    void deleteById(int id);

    //改
    void update(User user);

    //查
    List<User> selectAll();

    User selectByUnameAndPwd(
            @Param("username") String username,
            @Param("password") String password);
}
